// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

import Vue from 'vue'
import App from './App'
import Vuex from 'vuex'
import VueRouter from 'vue-router'
import 'lib-flexible'
import createRouter from './config/router'
import createStore from './store/store'

import { ToastPlugin } from 'vux'
Vue.use(ToastPlugin)
Vue.use(Vuex)
Vue.use(VueRouter)

const router = createRouter()
const store = createStore()
// 移除移动端页面点击延迟
const FastClick = require('fastclick')
FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#root',
  router,
  store,
  components: { App },
  template: '<App/>'
})
